import request from '@/utils/request'

export default {

    getStyleList(page,limit,styleQuery) {
        return request({
            url:`/comp/findStyle/${page}/${limit}`,
            method:'post',
            data:styleQuery
          })
    },

    addStyle(style) {
        return request({
            url:`/comp/addStyle`,
            method:'post',
            data:style
          })
    },

    deleteStyle(id) {
        return request({
            url:`/comp/deleteStyle/${id}`,
            method:'get',
          })       
    },

    getStyleById(id) {
        return request({
            url:`/comp/getStyle/${id}`,
            method:'get',
          })  
    },

    updateStyle(formData) {
        return request({
            url:`/comp/updateStyle`,
            method:'post',
            data:formData
          })        
    },

    getAllStyle() {
        return request({
            url:`/comp/styleList`,
            method:'get',
          })    
    }


}

